# Maintainer: Taner Tas <taner76@gmail.com>
pkgname=fs-uae-launcher
pkgver=3.0.5
pkgrel=0
pkgdesc="FS-UAE emulator launcher."
url="https://fs-uae.net/launcher"
arch="noarch !armhf !armv7 !aarch64 !s390x !mips !mips64"  # fs-uae not avail
license="GPL-2.0-only"
depends="fs-uae~$pkgver py3-qt5 py3-sip-pyqt5"
makedepends="py3-setuptools gettext"
subpackages="$pkgname-lang"
source="https://fs-uae.net/stable/$pkgver/fs-uae-launcher-$pkgver.tar.gz"
options="!check"  # no testsuite

package() {
	python3 setup.py install \
		--root="$pkgdir" \
		--install-lib=/usr/share/fs-uae-launcher \
		--install-scripts=/usr/share/fs-uae-launcher

	make DESTDIR="$pkgdir" prefix=/usr install-data

	mkdir -p "$pkgdir"/usr/bin
	ln -s ../share/fs-uae-launcher/fs-uae-launcher "$pkgdir"/usr/bin/fs-uae-launcher
	rm -rf "$pkgdir"/usr/share/doc
}

sha512sums="1a6700c56a14edce86ffbefee7494117af067da8b1dbc22937a36641ccb90927a3bbb011d15a891388bf08378aa623e00a2d45dbc49e822a5a569e110843add5  fs-uae-launcher-3.0.5.tar.gz"
